//
//  main.m
//  oc_14
//
//  Created by 楼楚 on 15/9/14.
//  Copyright (c) 2015年 Chu Lou. All rights reserved.
//

#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
    @autoreleasepool {
//        int[4] a = {1,2,3,4};
        NSNumber *intNumber = [[NSNumber alloc]initWithInt:1];
        NSNumber *charNumber = [[NSNumber alloc]initWithChar:'C'];
        NSNumber *floatNumber = [[NSNumber alloc]initWithFloat:5.0f];
        NSNumber *doubleNumber = [[NSNumber alloc]initWithDouble:6.7];
        
//        NSArray *arr = [[NSArray alloc]initWithObjects:intNumber,charNumber,floatNumber,doubleNumber, nil];
//        NSLog(@"%@",arr);
//        
//        NSNumber *intNumber1 = [[NSNumber alloc]initWithInt:1];
//        BOOL ret = [intNumber isEqualTo:intNumber1];
//        NSLog(@"%d",ret);
//        
//        NSComparisonResult *result = [intNumber1 compare:intNumber];
//        if (result == NSOrderedAscending) {
//            NSLog(@"<");
//        }
//        else if (result == NSOrderedSame){
//            NSLog(@"=");
//            
//        }
//        else if (result ==NSOrderedDescending){
//            NSLog(@">");
//        }
        int a = [intNumber intValue];
        float b = [floatNumber doubleValue];
        char c = [charNumber charValue];
        double d= [doubleNumber doubleValue];
        NSLog(@"%d,%f,%c,%lf",a,b,c,d);
        
    }
    return 0;
}
